package Demo2;

//类可以用 implements 来实现接口
 class Animal  implements ISwimming{
     String name;
     int age;
     public void eat() {
         System.out.println(this.name+ "正在吃饭");
     }
}
